﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Travel
{
    class eTicket:Service
    {
        public eFlight Flight { get; set; }
        public eSeat Seat { get; set; }
        public string Code { get; set; }

        public eTicket(eFlight flight, eSeat seat, string passenger)
        {
            Flight = flight;
            Seat = seat;
            Code = FlightProxy.GetTicket(flight.Code, seat.Descriptor, passenger);
            
        }
        
        public override void Book()
        {
            throw new NotImplementedException();
        }
    }
}
